package org.example.syn;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class SynTest1 {
    public static void main(String[] args) {
        String ll = "([A-Za-z] | '_') ([A-Za-z] | [0-9] | '_')*";
        Pattern pattern = Pattern.compile(ll);

        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String s = scanner.next();
            Matcher matcher = pattern.matcher(s);

        }
    }
}

